/* 首页的接口 */
import {
  getAction,
  postAction,
  putAction,
  deleteAction,
  httpAction,
} from "../utils/request.js";

// 行业动态列表
const noticeMessagePage = (params) =>
  getAction("/mini/sys/notice_message/page", params);

// 事件管理未读数
const eventRecordCount = (params) =>
  getAction("/mini/device/event_record/count", params);

// 事件管理   设备预警、告警、离线列表
const eventRecordPage = (params) =>
  getAction("/mini/device/event_record/page", params);

// 事件管理   处罚记录
const punishRecordPage = (params) =>
  getAction("/mini/restaurant/punish_record/page", params);

// 事件管理   设备预警、告警、离线已读操作
const eventRecordDetail = (params) =>
  getAction("/mini/device/event_record/detail", params);

// 事件管理   设备预警、告警、离线详情
const deviceDetail = (params) => getAction("/mini/device/detail", params);

// 核查整改列表
const workOrderRecordPage = (params) =>
  getAction("/mini/police/work_order_record/page", params);

// 核查整改详情 -- 添加回执
const workOrderRecordReceipt = (params) =>
  postAction("/mini/police/work_order_record/receipt", params);

// 清洗记录列表
const cleanRecordPage = (params) =>
  getAction("/mini/restaurant/clean_record/page", params);

// 上传清洗记录
const cleanRecordCreate = (params) =>
  postAction("/mini/restaurant/clean_record/create", params);

// 等级评定 -- 分页
const evaluateCheckTaskPage = (params) =>
  getAction("/mini/restaurant/evaluate_check_task/page", params);

// 等级评定 -- 分页
const evaluateCheckTaskItem = (params) =>
  getAction("/mini/restaurant/evaluate_check_task/task_item", params);

export {
  noticeMessagePage,
  eventRecordCount,
  eventRecordPage,
  punishRecordPage,
  eventRecordDetail,
  deviceDetail,
  workOrderRecordPage,
  workOrderRecordReceipt,
  cleanRecordPage,
  cleanRecordCreate,
  evaluateCheckTaskPage,
  evaluateCheckTaskItem,
};
